package cn.tianya.irock.data.idal;

import java.util.List;
import java.util.Map;

import cn.tianya.irock.data.model.User;
import cn.tianya.irock.enums.CreateUserStatus;
import cn.tianya.irock.enums.UserAccountStatus;
import cn.tianya.irock.util.DataSet;

public interface IUserDataProvider {
	User getUser(int userId, String username);
	DataSet<User> getUser(int pageIndex, int pageSize, String nicknameFilter, boolean cacheable, UserAccountStatus accountStatus);
	int getUserCount();
	CreateUserStatus add(User user);
	CreateUserStatus update(int userId, Map<String, Object> values);
	CreateUserStatus delete(User user);
}
